package com.cyd.springboot03demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName : com.cyd.springboot03demo.controller.HelloController
 * @Description : 类描述
 * Created by cyd on 2021-05-18 21:59:09
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/h")
    @ResponseBody
    public String sayHello() {
        return "hello world";
    }
}
